﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Money.Data;

namespace Money.Interfaces
{
    public interface ICategoryService
    {
        List<Category> GetCategories();
        Category GetCategoryById(int id);
        List<Category> GetCategories(int parent, bool hasParent);
        void CreateCategory(Category item);
        void DeleteCategory(int id);
        void UpdateCategory(Category item);
        List<Category> GetCategories(string orderBy, string orderDirection, int page, int pageSize, out int totalRecords);
        bool CanDelete(int id);
    }
}
